QSAVE
QSAVE_O

Syntax: QSAVE [device_]filename
    or: QSAVE
   and: QSAVE_O [device_]filename
    or: QSAVE_O
Location: SMS

The QSAVE command allows you to save the whole of SuperBASIC program currently in memory under the specified filename to the specified device.  If the filename does not end in the suffix _SAV, then this will be added automatically.  If no device is specified (or it does not exist), then Toolkit II's default data device will be used.  You will also be prompted to confirm whether an existing file should be overwritten if necessary.

The program will QLOAD much more quickly than if you had used SAVE and then LOAD.

The second variant of the command will allow you to QSAVE the program in memory under the same filename as when LOAD or QLOAD was last used (with the _SAV suffix appended if necessary).  If the original filename used when the program was LOADed ended in _BAS, then QSAVE will alter this to be the _SAV suffix.  This variant will also take the version number of the file when it was LOADed (or QLOADed) and then increase this by one.

QSAVE_O is the same, but will automatically overwrite an existing file.

CROSS-REFERENCE:
See SAVE, QLRUN and QMERGE.
DATAD$ allows you to read the current default data device.
FVERS allows you to read the current version number of a file.
